package cn.hchaojie.ssm.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import cn.hchaojie.ssm.service.CategoryService;

@Controller
public class CategoryController {
	@Autowired
	CategoryService service;
	
	@RequestMapping("/category/delete")
	public String delete(@RequestParam("id") int id) {
		service.delete(id);

		return "success";
	}
}
